#ifndef PARSER_H_
#define PARSER_H_

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "./util/strlib.h"
#include "config.h"


/**
 * Contains information about a command line once parsed
 */
typedef struct Command {
	char varName[MAX_VAR_LEN];
	char fncArgs[MAX_FNC_ARGS][MAX_PARAM_LEN];
	char callerObject[MAX_VAR_LEN];
	char targetObject[MAX_VAR_LEN];
	char keyword[MAX_CMD_INLINE][MAX_VAR_LEN];
} Command;

/**
 * Parses the command line and fill the structure command
 * @param line the line to parse
 * @param command a pointer to a command structure to fill
 */
void parseCommandLine(char* line, Command* command);




#endif /* PARSER_H_ */
